import Vue from 'vue'
import App from './App.vue'
import 'element-ui/lib/theme-chalk/index.css';
import router from "@/router";

import ElementUI from 'element-ui'
import './assets/styles/index.css'

Vue.use(ElementUI)

import VueClipBoard from 'vue-clipboard2'

// 使用VueClipBoard插件，主要功能：类似于剪切板
Vue.use(VueClipBoard)

import * as directives from './directives'
console.log(directives)

// 注册全局指令
Object.keys(directives).forEach(key => {
    Vue.directive(key, directives[key]) // 插入指令名和对应方法
})


Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    render: h => h(App)
})
